home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xmbase-grok-1.2 / config.h < prev    next >
C/C++ Source or Header  |  1995-06-25  |  2KB  |  73 lines

  1. /*
  2.  * configuration file for grok. Try to figure out what kind of system this
  3.  * is, and turn nonportable features on or off. Recognized systems are:
  4.  *
  5.  *   SGI IRIX        if "sgi" is defined
  6.  *   HP/UX 9.x        if "__hpux" is defined
  7.  *   IBM AIX        if "__TIMESTAMP__" is defined (there is nothing better)
  8.  *   MIPS Magnum    if "mips" is defined and "sgi" is not (this is a guess)
  9.  *   DEC OSF/1        if "osf" is defined (this is a guess)
  10.  *   BSDI 386        if "bsdi" is defined (this is a guess)
  11.  *   ULTRIX        if "ultrix" is defined (this is a guess)
  12.  *
  13.  * If you have one of the systems for which I don't know the distinguishing
  14.  * predefined symbol (lines that say "this is a guess"), please send mail to
  15.  * thomas@bitrot.in-berlin.de telling me how you fixed it! Ask me for a small
  16.  * shell script that dumps all predefined symbols on your system's cpp (not
  17.  * included because it is copylefted).
  18.  *
  19.  * Configurable parameters are:
  20.  *
  21.  *   MYCONST        either "const" or "" (the latter is for Ultrix)
  22.  *   FIXMBAR        on some systems, pulldowns always come up empty.
  23.  *            Define this to enable a weird hack that fixes this.
  24.  *   NOMSEP        remove all separator lines in pulldowns. Surprisingly
  25.  *            many Motif implementations have trouble with this.
  26.  *            Defining this fixes empty or truncated pulldowns
  27.  *   DIRECT        for BSD systems that use the older "direct" package,
  28.  *            if /usr/include/dirent.h does not exist
  29.  */
  30.  
  31. /*---------------------------------------------------------------------------*/
  32. /*
  33.  * This is the user-modifiable part. Hack away.
  34.  */
  35.  
  36. #define GROKDIR        "~/.grok"        /* grok working dir */
  37. #define PREFFILE    ".grokrc"        /* preference file in GROKDIR*/
  38. #define HELP_FN        "grok.hlp"        /* help text file */
  39. #define    PSPOOL_A    "lp"            /* default ascii spool string*/
  40. #define    PSPOOL_P    "lp"            /* default PostScript spool s*/
  41.  
  42.  
  43. /*---------------------------------------------------------------------------*/
  44. /*
  45.  * The rest is for porting only.
  46.  */
  47.  
  48. #if !defined(sgi)
  49. #define NOMSEP        1
  50. #endif
  51.  
  52. #if defined(osf) || defined(bsdi)
  53. #define DIRECT    1
  54. #endif
  55.  
  56. #ifdef ultrix
  57. #define MYCONST            /* use this if cc doesn't know "const" */
  58. #else
  59. #define MYCONST        const
  60. #endif
  61.  
  62. #ifdef FIXMBAR
  63. #define FIX_MENUBAR XmVaSEPARATOR,
  64. #else
  65. #define FIX_MENUBAR
  66. #endif
  67.  
  68. #ifdef NOMSEP
  69. #define XM_VA_SEPARATOR
  70. #else
  71. #define XM_VA_SEPARATOR XmVaSEPARATOR,
  72. #endif
  73.